(function($, window) {
	var baseRequest = window.baseRequest;
	var appConfig = window.appConfig;
	var baseUrl = appConfig.v3ServiceUrl + '/sec_sigupgrade';
	var v3Sigupgrade = window.v3Sigupgrade = {};
	
	//add by quke
	//特征库升级首页展示
	var FeaturedatabaseInfo = baseUrl + '/getFeaturedatabaseInfo?';
	v3Sigupgrade.getFeaturedatabaseInfo = function(devSN, callback){
		baseRequest.commonGet(FeaturedatabaseInfo + $.param({
			devSN : devSN
		}), 10000, function(code, data){
			if(code === 0){
				callback(0, data);
			}
			if(code === 1 || code ===2){
				return callback(2);
			}
		})
	}
	//特征库升级定时升级
	var timingupdate = baseUrl + '/timingupdate?';
	v3Sigupgrade.timingupdate = function(devSN, params, callback){
		baseRequest.commonGet(timingupdate + $.param({
			devSN : devSN,
			feature : params.feature,
			status:params.status,
			time:params.time,
			day:params.day,
			type:params.type
		}), 10000, function(code, data){
			if(code === 0){
				callback(0, data);
			}
			if(code === 1 || code ===2){
				return callback(2);
			}
		})
	}
	//end
})(mui, window);